<?php
/**
  * @copyright: veapon 2011
  * @file: common.inc.php
  * @abstract: Common include file
  * @author: veapon
  * @create: 2011-11-11
  * @version: 1.0
  * @update:
  */
error_reporting(E_ALL & ~E_NOTICE);
// 网站根目录
define('__ROOT__',str_replace('\\','/',dirname(__FILE__)).'/');
define('__URL__',str_replace($_SERVER['DOCUMENT_ROOT'],'http://'.$_SERVER['HTTP_HOST'],__ROOT__));
define('__LIB__',__ROOT__.'lib/');
define('__TABLE__',__ROOT__.'tables/');

include_once(__ROOT__.'config.php');
require_once(__LIB__.'DB.class.php');
require_once(__LIB__.'Model.class.php');
require_once(__LIB__.'common.func.php');

